<?php
/**
 * 检测是否登录
 * @return [type] [description]
 */
function IsLogin(){
    session_start();
    if(empty ($_SESSION["username"])){
    	header('content-type:text/html; charset=utf-8;');
    	echo "<script>window.location.href='/SHOP/admin.php/Home/Login/'</script>";
        //$this->success('请重新登录！','/ThinkApp/admin.php/Home/Login/login/');
        exit;
    }
}


?>
